package fuckjava;

import java.util.Map;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

public class SS {
	public static void main(String[] args) {
		JSONObject ctrlJson = new JSONObject();
		ctrlJson.put("timer",null);
		
		//Object o12 = ctrlJson.get("timer");
		//JSONArray jarr = JSONArray.fromObject(o12);
		//System.out.println(jarr.size());
		System.out.println(isJSONArray(ctrlJson));
		Map<String,String> resonseMap = null;
		if("sss".equals(resonseMap.get("sss"))) {
			System.out.println("sss");
		}
	}
	
	public static boolean isJSONArray(Object obj) {
		if(null==obj) {
			return false;
		}
		try {
			JSONArray jarr = JSONArray.fromObject(obj);
		}catch (Exception e) {
			return false;
		}
		return true;
	}
}
